Daniel Bannert's open source work is supported by the community on GitHub Sponsors
Install
npm install @visulima/cerebro
yarn add @visulima/cerebro
pnpm add @visulima/cerebro
Usage
import Cli from "@visulima/cerebro";
const cli = new Cli("cerebro");
cli.addCommand({
name: "main:colors",
description: "Output colors",
execute: ({ logger }) => {
logger.info("Colors command");
},
});
await cli.run();
Now you can run your CLI with node index.js
and you should see the following output:
Supported Node.js Versions
Libraries in this ecosystem make the best effort to track Node.js’ release schedule.
Here’s a post on why we think this is important.
Contributing
If you would like to help take a look at the list of issues and check our Contributing guild.
Note: please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Credits
About
Related Projects
- oclif - The Open CLI Framework
- gluegun - A delightful toolkit for building TypeScript-powered command-line apps.
- meow - CLI app helper
- commander.js - node.js command-line interfaces made easy
- yargs - yargs the modern, pirate-themed successor to optimist.
License
The visulima package is open-sourced software licensed under the MIT